package com.bangdream.michelia.contract;

import com.bangdream.michelia.entity.BaseEntity;
import com.bangdream.michelia.entity.CollectionBean;
import com.bangdream.michelia.entity.CollectionRecordBean;
import com.bangdream.michelia.entity.courses.CoursesBean;

import java.util.List;
import java.util.Map;

import io.reactivex.Observable;

/**
 * @date on 2018/8/12 21:13
 * @email 909732184@qq.com
 * 收藏
 */
public class CollectionContract {
    public interface ICollectionView{
        //设置课程列表
        void setCollectionList(boolean isSuccess, int page, List<CollectionBean> data, String stDescribe);
        void actionCollection(boolean isSuccess, CollectionRecordBean data, String stDescribe);
        void actionCencelCollection(boolean isSuccess, String stDescribe);
    }

    public interface ICollectionModel{
        Observable getCollectionList(Map<Object,Object> paramsMap);
        Observable actionCollection(Map<Object,Object> paramsMap);
        Observable actionCencelCollection(String id);
    }
}
